package com.megurokai.paint;

import android.graphics.Bitmap;

public class Layer {
	private Bitmap bitmap;
	private float x;
	private float y;
	
	public Layer(Bitmap bitmap){
		this(bitmap, 0, 0);
	}
	
	public Layer(Bitmap bitmap, float x, float y){
		this.bitmap = bitmap;
		this.x = x;
		this.y = y;
	}

	// セッター・ゲッター
	public Bitmap getBitmap() {
	    return bitmap;
	}
	public void setBitmap(Bitmap bitmap) {
	    this.bitmap = bitmap;
	}
	public float getX() {
	    return x;
	}
	public void setX(float x) {
	    this.x = x;
	}
	public float getY() {
	    return y;
	}
	public void setY(float y) {
	    this.y = y;
	}
	public int getWidth(){
		return bitmap.getWidth();
	}
	public int getHeight(){
		return bitmap.getHeight();
	}
}
